package com.changgou.pay.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    private static final String ORDER_PAY="order_pay";

    @Bean
    public Queue order_pay(){
        return QueueBuilder.durable(ORDER_PAY).build();
    }
}
